$(function(){
    $(".filter").click(function(){
        alert("22");
        var username=$("#login-form input[name='SearchForm[username]']").val();
        var score=$("#login-form select[name='SearchForm[score]']").val();
        $.ajax({
            type:"POST",
            url:"index.php?r=site/filter",
            data:"username="+username+"&score="+score,
            success:function(msg){
               $(".grid-view").load("index.php?r=site/filter .grid-view");
                alert(msg);
            }
        });
        return false;
    })
})